package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.Catelog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gulimall.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author yangdongdong
 * @email 1391587437@qq.com
 * @date 2025-03-05 00:13:33
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /*
     * @author yangdongdong
     * @date   2025/3/8 下午10:07
     * @description  以树形结构返回所有分类
     * @return java.util.List<com.atguigu.gulimall.product.entity.CategoryEntity>
     **/
    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> idList);

    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();


    Map<String, List<Catelog2Vo>> getCatalogJson();
}

